package com.embedsky.administrator.mycardemulation.socket;


public class ServerManager implements IServerManager{
    public static final String TAG = "ServerManager";
    private ServerThread mServerThread;

    public ServerManager(int port, IServerListener listener) {
        mServerThread = new ServerThread(port, listener);
    }

    @Override
    public void sendData(String data, String ip) {
        mServerThread.sendData(data, ip);
    }

    @Override
    public void broadcastData(String data) {
        mServerThread.broadcastData(data);
    }

    @Override
    public void closeClient(String ip) {
        mServerThread.closeClient(ip);
    }

    @Override
    public void finish() {
        mServerThread.finish();
    }
}
